﻿<%@ Page Language="C#" MasterPageFile="HomePage.master" AutoEventWireup="true" CodeFile="Diem-den.aspx.cs"
    Inherits="Diem_den" %>

<%@ Register Assembly="PagerControl" Namespace="CutePager" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>Điểm đến - Du Lịch và Giải Trí</title>
    <link href="CSS/style-diemden.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="container-fluid">
        <div class="row-fluid">
            <div class="span3">
                <div class="tuychon tieude-danhmuc">
                    TÙY CHỌN HIỂN THỊ</div>
                <ul class="danhmuc-tp nav nav-list">
                    <li><a href="">
                        <asp:Literal runat="server" ID="litSsTp"></asp:Literal></a>
                        <ul class="nav nav-list">
                            <asp:DataList runat="server" ID="dlQuanhuyen" RepeatLayout="Flow" RepeatDirection="Horizontal">
                                <ItemTemplate>
                                    <li><b class="icon-gift"></b>
                                        <asp:HyperLink runat="server" ID="linkCmTk" NavigateUrl='<%# "~/" + Eval("Id") + "_" + GetTieuDe(Eval("TenQuanHuyen")) + "_quanhuyen.aspx" %>'>
                                        <%#Eval("TenQuanHuyen") %>
                                        </asp:HyperLink>
                                    </li>
                                </ItemTemplate>
                            </asp:DataList>
                        </ul>
                    </li>
                </ul>
                <div class="tuychon tieude-danhmuc">
                    Chuyên mục
                </div>
                <ul class="ds-chuyenmuc nav nav-list">
                    <asp:DataList runat="server" ID="dlDanhmuc" RepeatLayout="Flow" RepeatDirection="Horizontal">
                        <ItemTemplate>
                            <li><b class="icon-gift"></b>
                                <asp:HyperLink runat="server" ID="linkCmTk" NavigateUrl='<%# "~/" + Eval("Id") + "_" + GetTieuDe(Eval("TenChuyenMuc")) + "_chuyenmuc.aspx" %>'>
                                    <%#Eval("TenChuyenMuc") %>
                                </asp:HyperLink>
                            </li>
                        </ItemTemplate>
                    </asp:DataList>
                </ul>
            </div>
            <div class="span9">
                <div class="hienthi-dd tieude-danhmuc">
                    DANH SÁCH ĐIỂM ĐẾN</div>
                <asp:UpdatePanel runat="server" ID="updatePanel1" UpdateMode="Conditional">
                    <ContentTemplate>
                        <asp:DataList runat="server" ID="dlDiemden" RepeatLayout="Flow" RepeatDirection="Horizontal">
                            <ItemTemplate>
                                <div class="diemden-element">
                                    <div class="diemden-image">
                                        <asp:HyperLink runat="server" ID="HyperLink1" NavigateUrl='<%# "~/" + Eval("Id") + "_" + GetTieuDe(Eval("TenDiaDiem")) + "_diadiem.aspx"  %>'>
                                            <asp:Image CssClass="lazyImage" runat="server" ToolTip='<%#Eval("TenDiaDiem") %>'
                                                AlternateText='<%#Eval("TenDiaDiem") %>' ID="imgDiemden" ImageUrl='<%# "~/" + "Upload/SanPham/" + Eval("AnhDaiDien") %>' />
                                        </asp:HyperLink>
                                    </div>
                                    <div class="diemden-caption">
                                        <p>
                                            <asp:HyperLink runat="server" ID="HyperLink2" NavigateUrl='<%# "~/" + Eval("Id") + "_" + GetTieuDe(Eval("TenDiaDiem")) + "_diadiem.aspx"  %>'><%# formatString(Eval("TenDiaDiem").ToString(), 15)%></p>
                                        </asp:HyperLink>
                                    </div>
                                    <%--<div class="xem-them">
                                        <asp:HyperLink runat="server" CssClass="btn btn-success" ID="linkChitiet" NavigateUrl='<%# "~/" + Eval("Id") + "_" + GetTieuDe(Eval("TenDiaDiem")) + "_diadiem.aspx"  %>'>Chi tiết</asp:HyperLink>
                                    </div>--%>
                                    <div class="phantram">
                                        <span>
                                            <%#Eval("PhanTram") + "%" %></span>
                                    </div>
                                    <%#KiemTraTrangThai(Convert.ToInt32(Eval("TrangThai")))%>
                                </div>
                            </ItemTemplate>
                        </asp:DataList>
                        <div class="phantrang pagination pagination-mini pagination-right pagination-small pull-right">
                            <cc1:Pager ID="Pager1" runat="server" PreviousClause="Lùi" NextClause="Tiếp" LastClause="Cuối"
                                FirstClause="Đầu" PageClause="<html><b>Trang </b></html>" ShowResultClause="Hiển thị từ"
                                ShowingResultClause="Đang hiển thị từ" BackToPageClause="Quay lại trang" OfClause=" / "
                                PageSize="12" OnCommand="Pager1_Command" ForeColor="#CC0000" Font-Bold="True" />
                        </div>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </div>
        </div>
    </div>
</asp:Content>
